﻿<%@ Language="VBScript" %>
<!-- #include file="aspuploader/include_aspuploader.asp" -->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd">
<!-- saved from url=(0052)http://www.hometeamsonline.com/baseball/photos.asp -->

<HTML 
xmlns="http://www.w3.org/1999/xhtml"><HEAD>

<!--Vu Tran-->




<TITLE>Test Team Photo Gallery</TITLE>

<link href="demo.css" rel="stylesheet" type="text/css" />
			
<script type="text/javascript">
		var handlerurl='ajax-attachments-handler.asp'
		
		function CreateAjaxRequest()
		{
			var xh;
			if (window.XMLHttpRequest)
				xh = new window.XMLHttpRequest();
			else
				xh = new ActiveXObject("Microsoft.XMLHTTP");
			
			xh.open("POST", handlerurl, false, null, null);
			xh.setRequestHeader("Content-Type", "application/x-www-form-urlencoded; charset=utf-8");
			return xh;
		}
	</script>
	<script type="text/javascript">
	
	var fileArray=[];
	
	function ShowAttachmentsTable()
	{
		var table = document.getElementById("filelist");
		while(table.firstChild)table.removeChild(table.firstChild);
		
		AppendToFileList(fileArray);
	}
	function AppendToFileList(list)
	{
		var table = document.getElementById("filelist");
		
		for (var i = 0; i < list.length; i++)
		{
			var item = list[i];
			var row=table.insertRow(-1);
			row.setAttribute("fileguid",item.FileGuid);
			row.setAttribute("filename",item.FileName);
			var td1=row.insertCell(-1);
			td1.innerHTML="<img src='aspuploader/resources/circle.png' border='0'/>";
			var td2=row.insertCell(-1);
			td2.innerHTML=item.FileName;
			var td4=row.insertCell(-1);
			td4.innerHTML="[<a href='"+handlerurl+"?download="+item.FileGuid+"'>download</a>]";
			var td4=row.insertCell(-1);
			td4.innerHTML="[<a href='javascript:void(0)' onclick='Attachment_Remove(this)'>remove</a>]";
		}
	}
	
	function Attachment_FindRow(element)
	{
		while(true)
		{
			if(element.nodeName=="TR")
				return element;
			element=element.parentNode;
		}
	}
	
	function Attachment_Remove(link)
	{
		var row=Attachment_FindRow(link);
		if(!confirm("Are you sure you want to delete '"+row.getAttribute("filename")+"'?"))
			return;
		
		var guid=row.getAttribute("fileguid");
		
		var xh=CreateAjaxRequest();
		xh.send("delete=" + guid);

		var table = document.getElementById("filelist");
		table.deleteRow(row.rowIndex);
		
		for(var i=0;i<fileArray.length;i++)
		{
			if(fileArray[i].FileGuid==guid)
			{
				fileArray.splice(i,1);
				break;
			}
		}
	}
	
	function CuteWebUI_AjaxUploader_OnPostback()
	{
		var uploader = document.getElementById("myuploader");
		var guidlist = uploader.value;

		var xh=CreateAjaxRequest();
		xh.send("guidlist=" + guidlist);

		//call uploader to clear the client state
		uploader.reset();

		if (xh.status != 200)
		{
			alert("http error " + xh.status);
			setTimeout(function() { document.write(xh.responseText); }, 10);
			return;
		}

		var list = eval(xh.responseText); //get JSON objects
		
		fileArray=fileArray.concat(list);

		AppendToFileList(list);
	}
	
	function ShowFiles()
	{
		var msgs=[];
		for(var i=0;i<fileArray.length;i++)
		{
			msgs.push(fileArray[i].FileName);
		}
		alert(msgs.join("\r\n"));
	}
	
	</script>


<META content="text/html; charset=UTF-8" http-equiv=Content-Type><LINK 
rel=stylesheet type=text/css href="include/style100930.css">
<STYLE type=text/css>
BODY {
	BACKGROUND-COLOR: #a7a09e
}
DIV.headerAccent {
	BACKGROUND-COLOR: #006633
}
.footerAccent {
	BACKGROUND-COLOR: #006633
}
.adminNavTop {
	BORDER-BOTTOM-COLOR: #006633; BORDER-TOP-COLOR: #006633
}
.footer {
	BORDER-TOP-COLOR: #006633
}
</STYLE>


<link href="styles/demo_style.css" rel="stylesheet" type="text/css">
<link href="styles/smart_tab.css" rel="stylesheet" type="text/css">
<script type="text/javascript" src="js/jquery-1.3.2.min.js"></script>
<script type="text/javascript" src="js/jquery.smartTab.js"></script>

<script type="text/javascript">
   
    $(document).ready(function(){
    	// Smart Tab    	
  		$('#tabs').smartTab({autoProgress: true,stopOnFocus:true,transitionEffect:'slide'});

		});
</script>
<SCRIPT type=text/javascript>var sport = 'baseball';var sportini = 'baseball';var username = 'TEST';var dbL = new Array();dbL['leagueadmintog'] = 1;dbL['leaguetog'] = 0;dbL['leaguename'] = 'TEST';dbL['prostyletog'] = 1;dbL['allstartog'] = 1;dbL['championtog'] = 1;dbL['page'] = 'photos';_editor_url = "/htmlarea/";var win_ie_ver = parseFloat(navigator.appVersion.split("MSIE")[1]);if (navigator.userAgent.indexOf('Mac') >= 0) { win_ie_ver = 0; }if (navigator.userAgent.indexOf('Windows CE') >= 0) { win_ie_ver = 0; }if (navigator.userAgent.indexOf('Opera') >= 0) { win_ie_ver = 0; }if (win_ie_ver >= 5.5) {  document.write('<scr' + 'ipt src="' +_editor_url+ 'editor100927.js"');  document.write(' language="Javascript1.2"></scr' + 'ipt>');  } else { document.write('<scr'+'ipt>function editor_generate() { return false; }</scr'+'ipt>'); }var color1Style = 'background-color:#E3DDA7;font-family:Verdana;font-size:x-small;color:#000000';var color2Style = 'background-color:#006633;font-family:Verdana;font-size:x-small;color:#F9F5F5';$(function() {$(".ieEditor").next().next().after('<div id="editorVersion"><table><tr><td><img src="/images/featurearrow1.gif" width="22" height="16" /><span>Now using IE Legacy Editor</span></td class="versionCell"><td class="toggleCell"><a href="javascript:{}" onclick="PrefSaveEditor(1)">click to switch to Advanced Editor</a></td><td class="helpCell"><a href="javascript:{}" onclick="PopUp(\'/admin/popups/Help.asp?infoID=362\', 460, 460, \'help\')"><img src="/images/screenshots/AdvancedEditor/mini_help_blk.gif" width="16" height="16" />about editors</a></td></tr></table></div>');});</SCRIPT>
<SCRIPT type=text/javascript>

$("ul.dropdown li").toggle(function(){
$(this).addClass("active");
$('> .dir',this).addClass("open");
$('ul:first',this).css('visibility', 'visible');},function(){
$(this).removeClass("active");
$('.open',this).removeClass("open");
$('ul:first',this).css('visibility', 'hidden');});


</script>
 

<SCRIPT type=text/javascript 
src="include/tiny_mce.js"></SCRIPT>

<SCRIPT type=text/javascript src="include/admin.js"></SCRIPT>

<SCRIPT type=text/javascript 
src="include/defaultConversion100920.js"></SCRIPT>

<META name=GENERATOR content="MSHTML 8.00.7600.16671"></HEAD>

<BODY>




<TABLE class=mainBody>
  <TBODY>
  <TR>
    <TD class=mainCell>
      <DIV class=headerAccent><INPUT onClick="javascript:GoToURL('/commonAdmin/LogOut.asp?sportini=baseball')" value="log out" type=button name=logout></DIV>
      <TABLE class=headBanner>
        <TBODY>
        <TR>
          <TD rowSpan=2><A 
            href="http://www.hometeamsonline.com/baseball/admin.asp?"><IMG 
            src="include/HTOblack.gif" width=175 
          height=46></A></TD>
          <TD class=bannerTitle><A 
            href="http://www.hometeamsonline.com/baseball/admin.asp?"><IMG 
            src="include/AdminTitle.gif" width=267 
            height=26></A></TD>
          <TD class=headTeamname>
            <DIV>Test Team</DIV></TD></TR>
        <TR>
          <TD class=headHomeLink><INPUT onClick="javascript:GoToURL('admin.asp?')" value="Back to Admin Home" type=button name=adminLink></TD>
          <TD class=headPreviewLink><INPUT onClick="javascript:PopUp('/TEST',800,600,'previewSite',1)" value="Preview Your Site" type=button name=preview></TD></TR></TBODY></TABLE>
      <DIV class=adminNavTop>
      <UL>
        <LI class=navCat2><SPAN>Schedule, Roster &amp; Teams</SPAN>
        <DIV class=navCat><A 
        href="http://www.hometeamsonline.com/baseball/schedulelist.asp?">Schedule-Scores-Stats</A><A 
        href="http://www.hometeamsonline.com/baseball/locationslg.asp?">Locations</A>
        <DIV class=divider><IMG src="include/spacer.gif" 
        width=1 height=1></IMG></DIV><A 
        href="http://www.hometeamsonline.com/baseball/roster.asp?">Roster</A><A 
        href="http://www.hometeamsonline.com/baseball/coaches.asp?">Coaches 
        &amp; Staff</A>
        <DIV class=divider><IMG src="include/spacer.gif" 
        width=1 height=1></IMG></DIV><A 
        href="http://www.hometeamsonline.com/baseball/sportshq.asp?">Add/Remove/Edit 
        Teams</A>
        <DIV class=divider><IMG src="include/spacer.gif" 
        width=1 height=1></IMG></DIV><A 
        href="http://www.hometeamsonline.com/baseball/tournaments.asp?">Tournament 
        Brackets</A><A 
        onclick="PopUp('/sportswebsites/?scheduler', '', '', 'robin', 1)" 
        href="http://www.hometeamsonline.com/baseball/photos.asp?#">Scheduler 
        Beta</A></DIV></LI>
        <LI class=navCat3><SPAN>Page Editors</SPAN>
        <DIV class=navCat><A 
        href="http://www.hometeamsonline.com/baseball/homeedit.asp?">Edit Home 
        Page</A>
        <DIV class=divider><IMG src="include/spacer.gif" 
        width=1 height=1></IMG></DIV><A 
        href="http://www.hometeamsonline.com/baseball/aboutedit.asp?">About 
        Page</A><A 
        href="http://www.hometeamsonline.com/baseball/news.asp?">News</A><A 
        href="http://www.hometeamsonline.com/baseball/links.asp?">Links</A>
        <DIV class=divider><IMG src="include/spacer.gif" 
        width=1 height=1></IMG></DIV><A 
        href="http://www.hometeamsonline.com/baseball/records.asp?">Records 
        &amp; Achievements</A><A 
        href="http://www.hometeamsonline.com/baseball/awards.asp?">Awards &amp; 
        Honors</A>
        <DIV class=divider><IMG src="include/spacer.gif" 
        width=1 height=1></IMG></DIV><A 
        href="http://www.hometeamsonline.com/baseball/custom.asp?">Custom 
        Pages</A></DIV></LI>
        <LI class=navCat4><SPAN>Layout &amp; Media</SPAN>
        <DIV class=navCat><A 
        href="http://www.hometeamsonline.com/baseball/colors.asp?">Website 
        Colors</A><A 
        href="http://www.hometeamsonline.com/baseball/flashbanner.asp?">Flash 
        Banner</A><A 
        href="http://www.hometeamsonline.com/baseball/navlinks.asp?">Navigation 
        Links</A><A 
        onclick="PopUp('/admin/popups/PhotoUpload.aspx?fileID=homelogo', 650, 550, 'logo')" 
        href="http://www.hometeamsonline.com/baseball/photos.asp?#">Logo 
        Upload</A>
        <DIV class=divider><IMG src="include/spacer.gif" 
        width=1 height=1></IMG></DIV><A 
        href="http://www.hometeamsonline.com/baseball/photos.asp?">Photo 
        Gallery</A><A 
        onclick="PopUp('/admin/popups/FileManager.asp?mType=solo', 600, 400, 'file_manager')" 
        href="http://www.hometeamsonline.com/baseball/photos.asp?#">File 
        Manager</A></DIV></LI>
        <LI class=navCat5><SPAN>Advanced Features</SPAN>
        <DIV class=navCat><A 
        href="http://www.hometeamsonline.com/baseball/registration.asp?">Registration</A><A 
        href="http://www.hometeamsonline.com/baseball/store.asp?">Store</A>
        <DIV class=divider><IMG src="include/spacer.gif" 
        width=1 height=1></IMG></DIV><A 
        href="http://www.hometeamsonline.com/baseball/guestbook.asp?">Guestbook</A><A 
        href="http://www.hometeamsonline.com/baseball/bboard.asp?">Bulletin 
        Board</A>
        <DIV class=divider><IMG src="include/spacer.gif" 
        width=1 height=1></IMG></DIV><A 
        href="http://www.hometeamsonline.com/baseball/fundraisingmanager.asp?">Online 
        Donations</A><A 
        href="http://www.hometeamsonline.com/baseball/ads.asp?">Sponsor 
        Banners</A><A 
        href="http://www.hometeamsonline.com/baseball/sponsors.asp?">Sponsor 
        Page</A>
        <DIV class=divider><IMG src="include/spacer.gif" 
        width=1 height=1></IMG></DIV><A 
        href="http://www.hometeamsonline.com/baseball/compeople.asp?">Contact 
        Lists</A><A 
        href="http://www.hometeamsonline.com/baseball/commailer.asp?">Email 
        Tool</A><A 
        onclick="PopUp('/commonAdmin/InfoCardsPrev.asp?sportini=baseball', '', '', '_cards', 1)" 
        href="http://www.hometeamsonline.com/baseball/photos.asp?#">Web Info 
        Cards</A></DIV></LI>
        <LI class=navCat6><SPAN>User Info &amp; Upgrades</SPAN>
        <DIV class=navCat><A 
        href="http://www.hometeamsonline.com/baseball/customerinfo.asp?">Administrator 
        Info</A><A 
        href="http://www.hometeamsonline.com/baseball/teaminfo.asp?">League Info 
        / Season</A>
        <DIV class=divider><IMG src="include/spacer.gif" 
        width=1 height=1></IMG></DIV><A 
        onclick="PopUp('/commonAdmin/AdminPass.asp?a=1&amp;sportini=baseball', 392, 300, '_password')" 
        href="http://www.hometeamsonline.com/baseball/photos.asp?#">Admin 
        Password</A><A 
        href="http://www.hometeamsonline.com/baseball/visitorsecurity.asp?">Visitor 
        Password</A>
        <DIV class=divider><IMG src="include/spacer.gif" 
        width=1 height=1></IMG></DIV><A 
        href="http://www.hometeamsonline.com/baseball/sportshq.asp?">Upgrades 
        &amp; Renewals</A>
        <DIV class=divider><IMG src="include/spacer.gif" 
        width=1 height=1></IMG></DIV><A 
        onclick="PopUp('http://www.hometeamsonline.com/domainhelp.htm', 1045, 800, '_domains', 1)" 
        href="http://www.hometeamsonline.com/baseball/photos.asp?#">Domains</A></DIV></LI>
        <LI class=navCat1><SPAN>Main Pages</SPAN>
        <DIV class=navCat><A 
        href="http://www.hometeamsonline.com/baseball/admin.asp?">Admin Home 
        Page</A><A 
        href="http://www.hometeamsonline.com/baseball/directory.asp?">Admin 
        Directory</A>
        <DIV class=divider><IMG src="include/spacer.gif" 
        width=1 height=1></IMG></DIV><A onClick="PopUp('/TEST')" 
        href="http://www.hometeamsonline.com/baseball/photos.asp?#">Preview 
        Site</A>
        <DIV class=divider><IMG src="include/spacer.gif" 
        width=1 height=1></IMG></DIV><A 
        href="http://www.hometeamsonline.com/baseball/helpfaq.asp?">Help &amp; 
        FAQs</A><A 
        onclick="PopUp('/sportswebsites/ContactForm.asp', 607, 550, 'ContactForm')" 
        href="http://www.hometeamsonline.com/baseball/photos.asp?#">Contact 
        HTO</A>
        <DIV class=divider><IMG src="include/spacer.gif" 
        width=1 height=1></IMG></DIV><A 
        href="http://www.hometeamsonline.com/sportswebsites/default.asp?p=helpdetails&amp;helpID=358&amp;adminLogout=1">Logout</A></DIV></LI></UL></DIV>
      <DIV class=midSection>
      <STYLE type=text/css>.bluelink {
	COLOR: #006
}
.priorityCol TD {
	PADDING-BOTTOM: 1px; PADDING-LEFT: 1px; PADDING-RIGHT: 1px; PADDING-TOP: 1px
}
.helplink {
	MARGIN-RIGHT: 14px
}
A.helplink:hover {
	BACKGROUND-COLOR: #444
}
</STYLE>

      <SCRIPT type=text/javascript> </SCRIPT>

      <TABLE id=photos class=contentTable>
        <TBODY>
        <TR>
          <TD class=content>
            <H1 class=navCat4>Photo Gallery</H1>
            <TABLE border=0 cellPadding=0 width="100%" align=center>
              <TBODY>
              <TR>
                <TD><A style="FLOAT: right" class="helplink helppad10" 
                  onclick="PopUp('/commonAdmin/SizingHelp.htm', 800, 600, '_sizing', 1)" 
                  href="javascript:{}"><IMG border=0 
                  src="include/HTOhelpR.gif"></A>                  <DIV class=overview>
				  <!--
				  Vu Tran updated: 05-Nov-2010
				  Tabs
				  -->
				

<!-- Tabs -->
  		<div id="tabs" class="stContainer">
  			<ul>
  				<li><a href="#tabs-1">
                <img class='logoImage2' border="0" width="30%" src="images/Step1.png">
                <h2>Albums</h2>
            </a></li>
  				<li><a href="#tabs-2">
                <img class='logoImage2' border="0" width="30%" src="images/Step2.png">
                <h2>Photos</h2>
            </a></li>
  				<li><a href="#tabs-3">
                <img class='logoImage2' border="0" width="40%" src="images/Step3.png">
                <h2>Upload</h2>
             </a></li>
  				
  			</ul>
  			<div id="tabs-1">
            <h2>Albums</h2>	
            <p>Albums Albums Albums Albums Albums Albums.
            </p>
            <p>
           Albums Albums Albums Albums Albums Albums.
            </p>
            <p>
       Albums Albums Albums Albums Albums Albums.
            </p>          			
        </div>
  			<div id="tabs-2">
            <h2>Photos</h2>	
            <p>Photos Photos Photos Photos Photos Photos Photos Photos Photos Photos Photos Photos Photos Photos Photos Photos Photos Photos 
            </p>
            <p>
           Photos Photos Photos Photos Photos Photos Photos Photos Photos Photos Photos Photos Photos Photos Photos Photos Photos Photos 
            </p>
            <p>
         Photos Photos Photos Photos Photos Photos Photos Photos Photos Photos Photos Photos Photos Photos Photos Photos Photos Photos 
            </p> 
            <p>
           Photos Photos Photos Photos Photos Photos Photos Photos Photos Photos Photos Photos Photos Photos Photos Photos Photos Photos 
            </p>          
        </div>                      
  			<div id="tabs-3">
            <h2>Upload</h2>	
            <p>Upload Upload Upload Upload Upload Upload Upload Upload Upload Upload Upload Upload Upload Upload Upload Upload Upload 
            </p>
            <p>
       Upload Upload Upload Upload Upload Upload Upload Upload Upload Upload Upload Upload Upload Upload Upload Upload Upload 
            </p>
            <p>
            Upload Upload Upload Upload Upload Upload Upload Upload Upload Upload Upload Upload Upload Upload Upload Upload Upload 
            </p>                				          
        </div>
  			
  		</div>
    
	
                </DIV></TD></TR>
              <TR>
                <TD>
                  
                  <SCRIPT language=JavaScript>
<!--



function setPriority(tableID, row, priorityShift) {
	//Make sure choices were legal
	if( (row == 1) && (priorityShift < 0) ) {
		alert("This item is already first.  You can not make it a higher priority");
		return;
	}
	if( (row == -1) && (priorityShift > 0) ) {
		alert("This item is already last.  You can not make it a lower priority");
		return;
	}
	
	//Variables used in redirect
	var updateIDs = "";
	var priorities = "";	
	
	//Increase Priority
	
	var itemID = eval('document.form' + tableID + '.itemID' + tableID + 'x' + row + '.value');
	var itemPriority = eval('document.form' + tableID + '.priority' + tableID + 'x' + row + '.value');
	var swapID = eval('document.form' + tableID + '.itemID' + tableID + 'x' + Number(row + priorityShift) + '.value');
	var swapPriority = eval('document.form' + tableID + '.priority' + tableID + 'x' + Number(row + priorityShift) + '.value');
	
	//Reset the priorities for all fields if any are null or equal
	if( (itemPriority == "null") || (itemPriority == "") || (swapPriority == "null") || (swapPriority == "") || (itemPriority == swapPriority) ) {
		for(var i=1; i < 0; i++) {
			if(i == row) {
				updateIDs += "," + itemID;
				priorities += "," + Number(i + priorityShift);
			} else if(i == Number(row + priorityShift) ) {
				updateIDs += "," + swapID;
				priorities += "," + Number(i - priorityShift);
			} else {
				updateIDs += "," + eval('document.form' + tableID + '.itemID' + tableID + 'x' + i + '.value');
				priorities += "," + i;
			}			
		}
	//Swap the priorities if they are both unique values		
	} else {
		updateIDs = "," + itemID + "," + swapID;
		priorities = "," + swapPriority + "," + itemPriority;
	}
	
	var theURL = "/baseball/photos.asp?u=TEST&s=baseball&t=c&updateIDs=" + updateIDs + "&priorities=" + priorities;

  	var self = window;
	self.location.href = theURL;

}

function crazyCopy(copyLink, copyText) {
	window.clipboardData.setData('Text', '<a href="Javascript:{;}" onClick="PopUp(\'' + copyLink + '\',300,150)\">' + copyText + '</a>');
	window.status = 'data copied to clipboard for pasting (' + copyText + ')';
}



//-->
</SCRIPT>
                </TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE></DIV>
      <DIV class=footerAccent></DIV>
      <DIV class=footerHelp>
      <DIV id=moreHelp></DIV></DIV>
      <DIV class=footer>
      <TABLE>
        <TBODY>
        <TR>
          <TD class=footerContactTD><A 
            onclick="PopUp('/sportswebsites/ContactForm.asp?page=photos', 607, 550, 'ContactForm')" 
            href="http://www.hometeamsonline.com/baseball/photos.asp?#"><IMG 
            title="Questions? Comments? Contact Us" 
            alt="Questions? Comments? Contact Us" 
            src="include/QuestionsCommentsContact.gif" 
            width=273 height=15></A></TD>
          <TD class=footerLogoTD><SPAN class=footerLogo><A 
            href="http://www.hometeamsonline.com/"><IMG 
            title="HomeTeamsONLINE.com Sports Website Templates" 
            alt="HomeTeamsONLINE.com Sports Website Templates" 
            src="include/hometeamsonline.gif" width=122 
            height=25></A><A 
            href="http://www.hometeamsonline.com/"><BR>www.HomeTeamsONLINE.com</A></SPAN></TD></TR></TBODY></TABLE></DIV></TD></TR></TBODY></TABLE>
<SCRIPT type=text/javascript>var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));</SCRIPT>

<SCRIPT type=text/javascript>try{var pageTracker = _gat._getTracker("UA-338647-1");pageTracker._initData();pageTracker._trackPageview();}catch(e){}</SCRIPT>
</BODY>


</HTML>
